<?php

/**
 * Staff form base class.
 *
 * @method Staff getObject() Returns the current form's model object
 *
 * @package    ecollegeplus
 * @subpackage form
 * @author     Batanayi Matuku
 * @version    SVN: $Id: sfDoctrineFormGeneratedInheritanceTemplate.php 29553 2010-05-20 14:33:00Z Kris.Wallsmith $
 */
abstract class BaseStaffForm extends ProfileForm
{
  protected function setupInheritance()
  {
    parent::setupInheritance();

    $this->widgetSchema   ['employment'] = new sfWidgetFormInputText();
    $this->validatorSchema['employment'] = new sfValidatorInteger(array('required' => false));

    $this->widgetSchema   ['is_student'] = new sfWidgetFormInputCheckbox();
    $this->validatorSchema['is_student'] = new sfValidatorBoolean(array('required' => false));

    $this->widgetSchema   ['employment_start_date'] = new sfWidgetFormDateTime();
    $this->validatorSchema['employment_start_date'] = new sfValidatorDateTime(array('required' => false));

    $this->widgetSchema   ['employment_end_date'] = new sfWidgetFormDateTime();
    $this->validatorSchema['employment_end_date'] = new sfValidatorDateTime(array('required' => false));

    $this->widgetSchema->setNameFormat('staff[%s]');
  }

  public function getModelName()
  {
    return 'Staff';
  }

}
